package com.sinosoft.builder.generator;

import java.io.File;

import org.apache.tools.ant.BuildException;

import com.sinosoft.builder.config.ILoaderHolder;
import com.sinosoft.builder.generator.ClassPatternSet.PatternEntry;

public interface IGenerator {

	public ILoaderHolder getConfig();

	public void setConfig(ILoaderHolder config);

	public File getDestDir() throws GeneratorException;
	
	public File getResDir() throws GeneratorException;
	
	public PatternEntry createExclude();
	
	public PatternEntry createInclude();
	
	public void setExcludes(String arg0);
	
	public void setIncludes(String arg0);

	/**
	 * 创建具体的文件
	 * 
	 * @throws BuildException
	 */
	public void createFiles() throws GeneratorException;
}
